package org.rockyang.shardingjdbc.mybatisplus.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.rockyang.shardingjdbc.mybatisplus.common.model.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhenwq
 * @since 2023-05-05
 */
public interface IUserService extends IService<User> {

    /**
     * add a new user
     * @param user
     * @return
     */
    Integer add(User user);

    /**
     * select all users
     * @return
     */
    List<User> selectAll();

}
